package cn.tedu.csmall.commons.pojo.admin.dto;

import com.sun.istack.internal.NotNull;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@ApiModel(value = "后台账号新增DTO")
@Data
public class AdminAddDTO implements Serializable {
    //反序列化根据序列化id进行转化
    private static final long serialVersionUID = 1L;//自己指定
    //用户名
    @ApiModelProperty(value = "管理员用户名",required = true)
    @NotNull()//username不能为空
    private String username;
    //昵称
    @ApiModelProperty(value = "管理员昵称")
    private String nickname;
    //密码
    @ApiModelProperty(value = "管理员密码",required = true)
    @NotNull
    private String password;
    //确认密码
    @ApiModelProperty(value = "管理员确认密码",required = true)
    @NotNull
    private String passwordAct;
    //头像url
    @ApiModelProperty(value = "管理员头像url")
    private String avatar;
    //手机号
    @ApiModelProperty(value = "手机号",required = true)
    @NotNull
    private String phone;
    //电子邮箱
    @ApiModelProperty(value = "电子邮箱",required = true)
    @NotNull
    private String email;
    //描述
    @ApiModelProperty(value = "管理员描述")
    private String description;
    //是否启用，1=启用，0=禁用
    @ApiModelProperty(value = "是否启用，1=启用，0=禁用")
    private Integer enable;
}
